﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ElGee.Google.Charts;

namespace WebApp.ColumnChartSample
{
    public partial class _2_CustomControl : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            // Find the Construction of the DataSource in /Data/ColumnChartData
            ChartDataSource ds = ColumnChartData.GetDataSource();

            // Find the Construction of the Options in /Data/ColumnChartData
            ColumnChart chart = ColumnChartData.GetOptions();

            // Rendering for Line Chart control is handled by a Skin available in /App_Themes/Default/Skins.skin

            // This control is embedding the datasource from the Server side
            synchColumnChart.Data = ds;
            synchColumnChart.Chart = chart;
        }
    }
}